/*  File Name	: Define.h
 *  Author		: Pang Jiacai
 *	 E-mail		: 823960168@qq.com
 *  Created on	: 2012-4-25
 *  Description:
 */

#ifndef DEFINE_H_
#define DEFINE_H_
#include "TimeValue.h"
#include "MessageBlock.h"

#define MEMZERO(PTR,SIZE) memset(PTR,'\0',SIZE)

typedef unsigned long int ulong;

enum MemMallocMode//内存分配模式
{
	MODE_USE_NEW 		= 1, //use C++ new
	MODE_USE_NEW_SIZE = 2, //use C++ new and specify size
	MODE_USE_MALLOC 	= 3  //use C malloc
};

enum ReactorMode
{
	SELECT_MODE =1,
	EPOLL_MODE =2
};

enum Endian
{
	ENDIAN_LITTLE=1,
	ENDIAN_BIG=2
};

#endif /* DEFINE_H_ */
